package com.dmpp.mes.service.impl;


import com.dmpp.mes.bean.ResponseData;
import com.dmpp.mes.dao.MaterialWarehouseMapper;
import com.dmpp.mes.dao.SemiProductWarehouseMapper;
import com.dmpp.mes.parameterInfo.MaterialWarehouse;
import com.dmpp.mes.parameterInfo.SemiProductWarehouse;
import com.dmpp.mes.parameterInfo.SemiProducts;
import com.dmpp.mes.service.MaterialWarehouseService;
import com.dmpp.mes.service.SemiProductWarehouseService;
import com.dmpp.mes.service.SemiProductsService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "SemiProductWarehouseService")

public class SemiProductWarehouseServiceImpl implements SemiProductWarehouseService {

    @Autowired
    private SemiProductWarehouseMapper mapper;

    @Override
    public ResponseData findAll(SemiProductWarehouse semiProductWarehouse) {
        ResponseData responseData = new ResponseData();
        PageInfo pageInfo = new PageInfo<>(mapper.findAll(semiProductWarehouse));
        responseData.setData(pageInfo);
        return responseData;
    }
}
